<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>文件列表页面</title>
</head>
<body bgcolor="#CFCFCF">
	<div>
		<h1>生成列表</h1>
		<a href="/exportExcelServlet.do" target="_bank">导出</a>	
		<a href="index.jsp" >导入</a>
		
	</div>
	<table>
		<%
			List<List<Object>> list = (List<List<Object>>) request.getSession()
					.getAttribute("list");

			out.print("<tr>");
			for (int i = 0; i < list.get(0).size(); i++) {
				out.print("<th width='90px;'>" + list.get(0).get(i) + "</th>");
			}
			out.print("</tr>");
			for (int i = 1; i < list.size(); i++) {
				List<Object> list2 = (List<Object>) list.get(i);
				out.print("<tr>");
				for (int j = 0; j < list2.size(); j++) {
					out.print("<td>" + list2.get(j) + "</td>");
				}
				out.print("</tr>");

			}
		%>
	</table>
</body>
</html>